//
//  MTMineTableViewController.swift
//  MTWeiBo
//
//  Created by user on 2017/7/22.
//  Copyright © 2017年 itcast. All rights reserved.
//

import UIKit

class MTMineTableViewController: MTBaseTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        if isLogin {
            
            setupPushButten()
        }else{
            visitor?.updateVisitorInfo(message: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人", imageName: "visitordiscover_image_profile")
        }
        
    }
    
    
    //设置导航栏push按钮
    private func setupPushButten() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(clickPushButten))
    }
    
    @objc private func clickPushButten() {
        let textVC = MTTextViewController()
        self.navigationController?.pushViewController(textVC, animated: true)
        
    }
    

}
